package com.linzm.optional;

import java.util.Optional;

/**
 * @Author zimingl
 * @Date 2022/10/30 18:59
 * @Description: TODO
 */
public class School {
    private String name;
    private Optional<Tearch> tearch;  //属性为Option封装的Tearch对象

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Optional<Tearch> getTearch() {
        return tearch;
    }

    public void setTearch(Optional<Tearch> tearch) {
        this.tearch = tearch;
    }
}
